#{extends 'admin.html' /}
#{set title:'This is the first page of gaoheng\'s playground!' /}

<div id="rightPan">
	<table>
		<tbody>
			<tr>
				<th>标题</th>
				<th>标签</th>
				<th>发表时间</th>
				<th>修改时间</th>
				<th>操作</th>
			</tr>
			#{list items:entrys, as:'entry'}
			<tr>
				<td>${entry.title}</td>
				<td>
					#{if entry?.tags()}
						#{list items:entry.tags(), as:'tag'}
							${tag.name}&nbsp;
						#{/list}
					#{/if}
				</td>
				<td>${entry.createTime.format('yyyy-MM-dd HH:mm')}</td>
				<td>${entry.lastModifyTime.format('yyyy-MM-dd HH:mm')}</td>
				<td>
					<a href="@{Blogs.show(entry.id)}">查看</a>|
					<a href="@{Admin.editBlog(entry.id)}">编辑</a>|
					<a href="@{Admin.delBlog(entry.id)}">删除</a>
				</td>
			</tr>
			#{/list}    		
		</tbody>
	</table>	    	
</div>